﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AFCEPF.BankApplication.DAL
{
    public class SqlServerSqlGenerator : AbstractSqlGenerator
    {
        public SqlServerSqlGenerator(DataMapper mappedObject)
            : base(mappedObject)
        {}


        /// <summary>
        /// Gets the SQL for last generated ID.
        /// </summary>
        /// <returns>
        /// the SQL for last generated ID.
        /// </returns>
        public override string getSqlForLastGeneratedID()
        {
            return "SELECT @@IDENTITY;";
        }
    }
}
